/*************************************************************************
	> File Name: client.cpp
	> Author: ma6174
	> Mail: ma6174@163.com 
	> Created Time: 2021年11月29日 星期一 21时58分47秒
 ************************************************************************/

#include<iostream>
#include "user.h"
using namespace std;

int main()
{
	User user;
	Department dept;

	IFactory* factory = new AccessFactory();

	IUser* iu = factory->createUser();
	IDepartment* id = factory->createDepartment();

	iu->insert(user);
	iu->getUser(1);

	id->insert(dept);
	id->getDepartment(1);

	return 0;
}
